﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PowerCalculation
{
    public class ElectricRepoStore
    {
        static ElectronicsDataBaseEntities1 ElectronicsDataBaseEntities;
        static ElectricsRepository ElectricsRepository;

        private ElectricRepoStore()
        {
        }

        public static ElectricsRepository GetRepository()
        {
            if (ElectricsRepository != null)
                return ElectricsRepository;
            ElectronicsDataBaseEntities = new ElectronicsDataBaseEntities1();
            return new ElectricsRepository(ElectronicsDataBaseEntities);
        }
    }
}
